<%--
    fileName      : /register/userinfo.jsp
    author        : user
    createDate    : 2017-01-13  
    lastModifier  : user
    lastModifyDate: 2017-01-13       
    description   : 列表页面
--%>
<%@ page language='java' contentType='text/html; charset=UTF-8' pageEncoding='UTF-8' %>
<%@ taglib uri='ctp-tag' prefix='ctp' %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
        <title></title>

        <ctp:include items='public,validator,groupbox,borderlayout,panel,form,button,toolbar,gridlayout,label,textfield,combobox,checkboxgroup,datepicker,grid,menus,chain,message_ex,link'/>

        <script type='text/javascript' kind='variant'>

            var borderlayout1;
            var querycondition;       //查询条件
            var queryForm;
            var queryGridlayout;
            var userId; //用户ID
            var registMobile; //注册手机号0.
            var loginPwd; //登录密码
            var registTime; //注册时间
            var osType; //操作系统类别(1.IOS 2.Android)
            var appVersionNo; //APP版本号
            var terminalCode; //设备编号
            var lastLoginTime; //最近登录时间
            var imagePath; //头像路径
            var nickname; //昵称
            var chanelid; //推送设备ID
            var reset;                //重置    
            var submit;               //提交
            var v_userinfoId = "";		  //方法域中记录问题ID的变量
            var v_urlFirst='';
            var openFrom = '0';
            var queryGroupbox;
            var v_branchId = "";
        </script>
        <script type='text/javascript' kind='event'>
	        function queryInfosExport(){
	            //var url='<ctp:url href="userinfomain.flowc" flowActionName="opFileExport" params="language=\'zh_CN\';begNum=1;fetchNum=1;" />'+getQueryInfo();
	            var url='<ctp:url href="userinfomain.flowc" flowActionName="exportregist" />&branchId=<ctp:out name="branchId"/>';
	            window.location.href=url;
	        }
        </script>
        <script type='text/javascript' kind='ui'>

            $(window).load(function(){
            	v_branchId = '<ctp:out name="branchId"/>';
      		     //================================UI变量定义片段============================================================		
      		     toolbar1 = new ctp.ui.toolbar({
                    id: 'toolbar1',
                    leftItems: [
                       
                        {
                            type: 'button',
                            id: 'ExcelExport',
                            name: 'ExcelExport',
                            text: '<ctp:label key="export"/>',
                            icon: 'down',
                            onClick : queryInfosExport
                        }
                    ]
                });			
                prolist = new ctp.ui.grid({
                    id: 'prolist',
                    title:'列表',
                    toolbar:toolbar1,
                    toolbarPos:'innertop',
                    header: {
                        title: [
                            [		
									{			
										text: '编号'
									},	
									{			
										text: '姓名'
									},					
									{			
										text: '部门'
									},								
																	
									{			
										text: '注册时间'
									}						                                
                            ]
                        ],
                        rowIdFieldName: "userId",
                        attr: [
							{	
								fieldName: 'userId',css:{"text-align":"center"}
	                            								},
							{	
								fieldName: 'username',css:{"text-align":"center"}
	                            								},    								
                            {	
	                            	fieldName: 'branchname',css:{"text-align":"center"}
									                            },
                            
                            {	
	                            	fieldName: 'registTime',css:{"text-align":"center"}
									                            }                                                     
                        ]
                    },
                    url:'<ctp:url href="userinfomain.flowc" flowActionName="getregist"/>&branchId='+v_branchId
                    ,
                    footer: {
						auto:true                    
                    }
                });

              
                borderlayout1 = new ctp.ui.borderlayout({
                    id:'borderlayout1',
                    type: '1C',
                    /* north__size: 0.3, */
                    //north__items:[querycondition],
                    center__items:[prolist],
                    /* north__closable:false,
                    north__resizable : true, */
                    renderTo: 'body'
                });
            });
        </script>


    </head>
    <body>

        <ctp:form name="queryForm" method="post" action="userinfomain.flowc" flowActionName="">
        	
        </ctp:form>

    </body>
</html>
